-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set-AzureRMVMAEMExtension - Improve support for Managed Disks #3865
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MSSedusch one comment, otherwise LGTM
@@ -395,6 +395,7 @@ public virtual Collection<PSObject> RunPowerShellTest(params string[] scripts) | |||
private void SetupPowerShellModules(System.Management.Automation.PowerShell powershell) | |||
{ | |||
powershell.AddScript("$error.clear()"); | |||
powershell.AddScript("Set-ExecutionPolicy Bypass -Scope Process"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MSSedusch why was this added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test cases only run if I add that line. I usually don't submit the change but since I always have to do it and it doesn't harm I submitted it this time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this. It impacts all tests run by all RPs. It is not necessary if you set up your machine to allowpowershell scripting.
@singhkays would you mind signing off? |
@@ -395,6 +395,7 @@ public virtual Collection<PSObject> RunPowerShellTest(params string[] scripts) | |||
private void SetupPowerShellModules(System.Management.Automation.PowerShell powershell) | |||
{ | |||
powershell.AddScript("$error.clear()"); | |||
powershell.AddScript("Set-ExecutionPolicy Bypass -Scope Process"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this. It impacts all tests run by all RPs. It is not necessary if you set up your machine to allowpowershell scripting.
Are you saying that the line breaks all other tests? It would not be required to change the machine execution policy if that line was added. I think that this would be a good thing. Anyway, I removed the line. |
@azuresdkci test this please |
@azuresdkci test this please |
Description
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcess
and haveSupportShouldProcess=true
specified in the cmdlet attribute. You can find more information onShouldProcess
here.OutputType
attribute if any output is produced - if the cmdlet produces no output, it should implement aPassThru
parameter.Cmdlet Parameter Guidelines